﻿@*
    For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
    NewBee.Core.Models.Survey_Share _Survey_Share = (NewBee.Core.Models.Survey_Share)ViewBag.Share;
    NewBee.Core.Data.Model.PageResult _PageResult = (NewBee.Core.Data.Model.PageResult)ViewBag.PageList;
    List<dynamic> _List = (List<dynamic>)_PageResult.rows;
}

<!doctype html>
<html class="no-js" lang="zh-cn">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>问卷调查</title>
    <link rel="stylesheet" href="/assets/css/app.css">
</head>
<body>
    <div style="margin:0 auto;width:0px;height:0px;overflow:hidden">
        <img src="/assets/img/900x500.png" width="700" />
    </div>
    <div class="share wh">
        <div class="grid-container">
            <div class="row">
                <div class="medium-12 medium-centered large-12 large-centered columns">
                    <form>
                        <div class="row column shareContent">
                            <div class="shareNum">@_Survey_Share.ResultNum</div>
                            <div class="row">
                                <div class="small-8 small-centered columns myPM">我目前排名：第 @ViewBag.Num 名</div>
                            </div>
                            <div class="pmList">
                                <div class="list">
                                   @for (int i = 0; i < _List.Count; i++)
                                   {
                                    <div class="row">
                                        <div class="small-3 large-3 columns"><div>NO.@(i + 1)</div></div>
                                        <div class="small-6 large-6 columns">@_List[i].UserName</div>
                                        <div class="small-3 large-3 columns">@_List[i].ResultNum</div>
                                    </div>
                                   }
                                </div>
                            </div>
                            <a href="/Home?ShareId=@_Survey_Share.ID"><img src="/assets/img/shareBtn.png" class="shareBtn" id="shareBtn"></a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

    <script src="/assets/js/app.js"></script>
</body>
</html>